Skip to main content

controlAtScreenLoc

Type​

function

Summary​

Returns the control at the specified location.

Syntax​

controlAtScreenLoc(<coordinates>)

Description​

The controlAtScreenLoc function returns the control at the given location. The function returns the number of the control, below are examples of getting the name or long id of the control

    get the name of (controlAtScreenLoc(coordinates))

get the long ID of (controlAtScreenLoc(coordinates))

Parameters​

NameTypeDescription

coordinates

point

A location, relative to the screen

Examples​

put controlAtScreenLoc((100,100))
get the name of (controlAtScreenLoc(the screenMouseLoc))

Value​

NameTypeDescription

return

string

The control at the given location, in the form: control control_number.

function: screenMouseLoc, controlAtLoc

keyword: control

property: location

Compatibility and Support​

Introduced

LiveCode 6.0

OS

mac

windows

Platforms

desktop

Thank you for your feedback!

Was this page helpful?